﻿<%@ Page Language="C#" MasterPageFile="~/master.master" AutoEventWireup="true" CodeFile="ebooks.aspx.cs" Inherits="ebooks" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style8
        {
            width: 100%;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataList1" runat="server" DataKeyField="ebookId" 
        DataSourceID="SqlDataSource1">
        <ItemTemplate>
            <br />
            <table class="style8">
                <tr>
                    <td>
                        <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("filePath") %>' />
                    </td>
                    <td>
                        ebookId:
                        <asp:Label ID="ebookIdLabel" runat="server" Text='<%# Eval("ebookId") %>' />
                        <br />
                        ISBN:
                        <asp:Label ID="ISBNLabel" runat="server" Text='<%# Eval("ISBN") %>' />
                        <br />
                        ebookTitle:
                        <asp:Label ID="ebookTitleLabel" runat="server" 
                            Text='<%# Eval("ebookTitle") %>' />
                        <br />
                        categoryId:
                        <asp:Label ID="categoryIdLabel" runat="server" 
                            Text='<%# Eval("categoryId") %>' />
                        <br />
                        uploadedDate:
                        <asp:Label ID="uploadedDateLabel" runat="server" 
                            Text='<%# Eval("uploadedDate") %>' />
                        <br />
                        uploadedUserId:
                        <asp:Label ID="uploadedUserIdLabel" runat="server" 
                            Text='<%# Eval("uploadedUserId") %>' />
                    </td>
                </tr>
            </table>
            <br />
        </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [tblEbook]"></asp:SqlDataSource>
</asp:Content>

